package com.zmn.oms.dubbo.interfaces.normal.conf;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dro.normal.conf.ConfOrderTagDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 类描述：标签查询
 *
 * @author wangxiaokun
 * @since 2022/03/25 15:14
 */
@Api(
        value = "订单标记查询",
        tags = {"订单标记查询"}
)
public interface ConfOrderTagListRemoteService {

    /**
     * 根据标记id查询标记配置
     *
     * @param id
     * @return
     */
    @ApiOperation(
            value = "根据标记id查询标签配置",
            response = ResponseDTO.class,
            tags = {"订单标记查询"}
    )
    ResponseDTO<ConfOrderTagDRO> getConfOrderTagById(@NotNull(message = "标记id不能为空")
                                                     @ApiParam(value = "标记id", required = true) Integer id);

    /**
     * 根据分类id查询标记配置
     *
     * @param categoryIds
     * @param status
     * @return
     */
    @ApiOperation(
            value = "根据标记分类查询标签配置",
            response = ResponseDTO.class,
            tags = {"订单标记查询"}
    )
    ResponseDTO<List<ConfOrderTagDRO>> listConfOrderTagByCategoryIds(@NotNull(message = "分类id集合不能为空")
                                                                     @ApiParam(value = "分类id集合", required = true) List<Integer> categoryIds,
                                                                     @NotNull(message = "状态不能为空")
                                                                     @ApiParam(value = "状态:1停用，2启用", required = true) Integer status);


}
